package com.easyim.imserver.service.impl;

import com.alibaba.fastjson2.JSONObject;
import com.easyim.imserver.service.ITokenService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
//@Component
public class TokenServiceMockImpl implements ITokenService {

    /**
     *  这里其实看传的是什么种类的token是服务器端校验 还是jwt如果jwt直接解析就可以
     * @param body
     * @return
     */
    @Override public String getToken(JSONObject body) {
        return "312321312TokenStr";
    }

    @Override public Boolean checkToken(JSONObject body) {
        log.info("use mock type check token");
        return Boolean.TRUE;
    }
}
